package com.ctshk.rpc.air.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *     機票日期範圍內的低價
 * </p>
 */
@Data
@ApiModel(value = "AirLowPriceByDateReq",description = "通過日期查詢航班最低價")
public class AirLowPriceByDateReq implements Serializable {
    private static final long serialVersionUID = -5745544695608420799L;


    @ApiModelProperty(value = "出发城市id",required = true)
    @NotNull(message = "出发城市不能为空")
    private Long depCityId;

//    @ApiModelProperty(value = "出发城市名称",required = true)
//    private String depCityName;

    @ApiModelProperty(value = "到达城市id",required = true)
    @NotNull(message = "到达城市不能为空")
    private Long arrCityId;

//    @ApiModelProperty(value = "到达城市名称",required = true)
//    private String arrCityName;

    @ApiModelProperty(value = "開始時間",required = true)
    @NotNull(message = "開始時間不能为空")
    private LocalDate startDate;

    @ApiModelProperty(value = "結束時間",required = true)
    @NotNull(message = "結束時間不能为空")
    private LocalDate endDate;
}
